package org.com.behavioralPattern.strategyPattern;

/**
 * 抽象折扣算法类
 * @author Jonny
 * @version 1.0
 * @Description:
 * @date 2021/4/27 14:05
 */
public abstract class DiscountStrategy {
    private double price=0;
    private int number=0;
    public DiscountStrategy(double price,int number){
        this.price=price;
        this.number=number;
    }

    public double getPrice(){
        return price;
    }

    public int getNumber(){
        return number;
    }

    public abstract double calculateDiscount();
}
